<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style type="text/css">
	label.col-2{width: 120px;}
	
	
	
	#slimg{position: absolute; bottom: 0px; left: 0px; width: 100%; height: 30px;}

	.caozuo{}
	.caozuo span{cursor: pointer; margin-right: 10px;}
	#tpl_blank{position: relative; width: 230px;}
	.inputblank{position: absolute; display: none;
    width: 100%;
    height: 100%;
    top: 0px;
    background-color: #fff;}
	#tpl_blank span{margin-right: 5px;}
	.inputtplid{
		width: 90px; margin-right: 5px;
	}
	.inputtplid input{
		width: 90px;
	}
	.guige{background-color:#f9f9f9; border-radius: 3px;}
	.guige tr{border:#ddd 1px solid; list-style: none; padding: 5px 10px; padding: 0px; position: relative;}
	.guige td{padding: 5px 10px;}
	.guige td.text{width: 100px; text-align: center; border-right: #ddd 1px solid;}
	.guige td.input{}
	.guige i{
		position: absolute;
	    right: -30px;
	    font-size: 25px;
	    line-height: 25px;
	    cursor: pointer;
	}

	#autocomplate{
		position: absolute; top: 40px; width: 100%; border-radius: 5px; 
		display: none; background-color: #ddd; z-index: 1000; 
	}
	#autocomplate li{list-style: none; border-bottom: #fff 1px dashed; line-height: 35px; padding:0px 5px; cursor: pointer;}
	#autocomplate li:active{background-color: #fff; color: #333;}
	#autocomplate li:hover{background-color: #fff; color: #333;}
	#shoplist span{ padding: 3px 5px; border:#f37b1d 1px solid; border-radius: 3px; margin-right: 5px; color: #f37b1d; font-size: 12px; cursor:pointer;}
</style>
<title>运费模板编辑</title>
</head>
<body>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form1">
		<input type="hidden"  name="tid" id="tid">
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>运费模板名称：</label>
			<div class="formControls col-4">
				<input type="text" class="input-text" value="" placeholder="" id="title" name="title" nullmsg="运费模板名称不能为空！" datatype="s1-100">
			</div>
			<div class="col-2"> </div>

			
		</div>


		

		

		

		
</div>

<div class="row cl pr-20" style="position:fixed; bottom:10px; width: 200px; right: 10px; text-align: right; z-index:1000; ">
	
		<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
		<button onClick="removeIframe();" class="btn btn-default radius" type="button" style="margin-left:10px;">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
	
</div>
</form>

<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 

<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/template-native.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 

<script type="text/javascript" src="lib/daterangepicker/moment.min.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/jquery.daterangepicker.js"></script>
<link rel="stylesheet" href="lib/daterangepicker/daterangepicker.css" /> 


<script type="text/javascript">



function removeIframe(){
	var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}


$(function(){





	
	
	


	$("#form1").attr("action", API_TRANSTMP); 

	var editid=getUrlParam('editid');//编辑菜单id


	// 商品操作、审核/确认收货
	$(document).on('click','span.pagefun-shenhe',function(){
	    var id=editid;
	    var that=$(this);
	    var flag=that.data("flag");
	    $.getJSON(API_TRANSTMP,{pending:id,t1:flag},function(data){
	    	checkStatus(data);
	        if(data.status==1){
	        	if(flag==1){
	        		that.parent().html("审核通过");
	        	}else if(flag==0){
	        		that.parent().html("审核不通过");
	        	}
	        	
            }
	    });  
	})

	if(editid!==null){	     
	    var eidturl=API_TRANSTMP+"?tid="+editid;
	    // 读取即将编辑的文章信息
	    $.getJSON(eidturl,function(data){

	    	if(!checkStatus(data)) return;//判断登录

	    	if(data.datas==''){
	    		layer.msg("数据加载错误", {icon:2,time:1000});
	    	}else{
	            $("#title").val(data.datas.title);
	            $("#tid").val(data.datas.id);
	           





	            if(data.datas.goods_show=='0'){
	                $("#radio-2").attr("checked",true);
	                $("#radio-1").attr("checked",false);
	            }else{
	                $("#radio-1").attr("checked",true);
	                $("#radio-2").attr("checked",false);
	            }

	 
	        }
	    })
	}



	Validformsubmit("#form1");

	
	
	



});




</script>
</body>
</html>